#ifndef CPlusPLus_H
#define CPlusPLus_H
#include "../../languageextentioninterface.h"
#include "../../Qsci/qscilexercpp.h"
#include <QTabWidget>
#include <QProcess>
#include <QFile>

class CPlusPLus : public QObject, public Language
{

    Q_OBJECT
    Q_INTERFACES(Language)
public:
    CPlusPLus();
    ~CPlusPLus();
    const QString name();
    const QString author();
    QWidget* settings();
    QWidget* openFile(QTabWidget*, QString);
    bool compile(QStringList files, QString = QString());
private:
    QProcess *m_cmpPrc;
    void configureEditor(QsciScintilla*);
    void setupDefaultLexer(QsciScintilla*);
    //QsciLexerCPP* lexer;
};

#endif // CPlusPLus_H
